package com.ruoyi.system.domain.bo;

import com.alibaba.fastjson.annotation.JSONField;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 主播业务对象 dy_anchor
 *
 * @author ruoyi
 * @date 2024-06-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DyAnchorBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 名称
     */
    @NotBlank(message = "昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nickName;


    /**
     * 分公司
     */
    @NotNull(message = "分公司不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long companyId;

    /**
     * 分成点
     */
    @NotNull(message = "分成点不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long companyPoint;

    /**
     * 客服id
     */
    private Long customerId;

    /**
     * 客服名称
     */
    private String customerName;

    /**
     * 备注
     */
    private String des;

    /**
     * 所属运营列表
     */
    private List<DyAnchorRelEditBo> relEditBoList;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
